package com.azusa.xbjy.service;

import com.azusa.xbjy.entity.Article;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface ArticleService {

    PageInfo<Article> findAllPage(int pageNum, int pageSize, String title);

    void save(Article article);

    Map<String,Object> findById(int aid,int userId);

    void updateBrowseCount(int aid);

    PageInfo<Article> findCollectPage(int pageNum, int pageSize, int uid, String title);

    void updateCollect(int aid,int uid, boolean collect);
}
